<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/6/25
 * Time: 14:10
 */

namespace app\common\model;


use think\Model;

class Passbook extends Model
{
    public function gettitle(){
        return $this->hasOne('Practice', 'id', 'aid')->bind([
            'title'=>'title'
        ]);
    }

    public function user(){
        return $this->hasOne('user', 'id', 'uid')->bind([
            'nick_name'=>'nick_name'
        ]);
    }
}